<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>마이홈2 login_result</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login_result</title>
<style>
#lo_main {
	padding:15px;
	border: 3px solid #eeeeee;
	margin:auto;
	margin-top:200px;
	text-align:center;
	width:500px;
	height:60px;
}
#lo_d{
	padding:10px;
}

</style>

<script>
window.onload = function(){
	var btn = document.getElementById('btnOk');
	btn.onclick = function(){
		location.href = 'index.jsp?inc_content=none.jsp';
	}	
}
</script>
</head>

<body>
<jsp:useBean id="bean" class="member.Login" scope="page"/>
<jsp:setProperty property="*" name="bean"/>

<%-- <%
if(bean.login()){
	out.print("다시 찾아주셔서 감사드려요..");
    out.print(bean.getMid() + " 님...");
	session.setAttribute("mid", bean.getMid());
}else{
	out.print("아이디와 암호를 확인해 주세요... 저리 꺼져서..");
}
%>


<li> MID : <%=bean.getMid() %>
<li> PWD:  <%=bean.getPwd() %>

<p/> --%>

<div id='lo_main'>
	<%
	if(bean.login()){
	%>
		<div id='lo_a'><%=bean.getMid() %> 님 다시 찾아주셔서 감사합니다.</div>
		<%session.setAttribute("mid", bean.getMid());%>
	<%}else{ %>
		아이디와 암호를 다시 한 번 확인해주세요..
	<%} %>
	<div id='lo_d'><input type='button' id='btnOk' value='확인'></div>
</div>



</body>
</html>


